package purchase.wf;

import java.util.Date;

public class ProcessHistoryInfo implements Comparable<ProcessHistoryInfo> {
	
	private long taskId;
	
	private String taskName;
	
	private Date createTime;
	
	private Date endTime;
	
	private String actorId;

	/**
	 * compare
	 */
	public int compareTo(ProcessHistoryInfo o) {
		 if (taskId > o.taskId)
             return 1;
		 else if (taskId == o.taskId)
             return 0;
     	else
             return -1;
	}

	public long getTaskId() {
		return taskId;
	}

	public void setTaskId(long taskId) {
		this.taskId = taskId;
	}

	public String getTaskName() {
		return taskName;
	}

	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getActorId() {
		return actorId;
	}

	public void setActorId(String actorId) {
		this.actorId = actorId;
	}

}
